cask 'scribus' do
  if MacOS.version <= :mojave
    version '1.4.8'
    sha256 '9626c35ca5de5da59ac983efac3572318d327b3a921522c9f80a525b039a0af5'

    # sourceforge.net/scribus/ was verified as official when first introduced to the cask
    url "https://downloads.sourceforge.net/scribus/scribus/#{version}/scribus-#{version}.dmg"
    appcast 'https://www.scribus.net/downloads/stable-branch/'
  else
    version '1.5.5'
    sha256 '42426b1bf21a1eafc5e5c442e81ca77cec65b83751c8fdcd4f9b258c47063f3b'

    # sourceforge.net/scribus-devel/ was verified as official when first introduced to the cask
    url "https://downloads.sourceforge.net/scribus/scribus-devel/#{version}/scribus-#{version}.dmg"
    appcast 'https://www.scribus.net/downloads/unstable-branch/'
  end

  name 'Scribus'
  homepage 'https://www.scribus.net/'

  app 'Scribus.app'
end
